package com.restaurant.springboot.repositories;

import com.restaurant.springboot.entity.ShoppingCartEntity;
import com.restaurant.springboot.entity.ShoppingCartEntityPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.*;
@Repository
public interface ShoppingCartRepository extends JpaRepository<ShoppingCartEntity, ShoppingCartEntityPK> {
    List<ShoppingCartEntity> findAllByUserId(int userId);
}